//
//  LYButton.m
//  day02
//
//  Created by dllo on 16/6/6.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "LYButton.h"



@implementation LYButton

+(instancetype)buttonWithFrame:(CGRect)frame withText:(NSString *)text
{
    LYButton *button = [LYButton buttonWithType:UIButtonTypeCustom];
    button.frame = frame;
    button.backgroundColor = [UIColor whiteColor];
    [button setTitle:text forState:UIControlStateNormal];
    
    [button setTitleColor:[UIColor greenColor] forState:UIControlStateNormal];
    
    
    return button;
}



@end
